package com.hawk.eye.common.config;

import com.hawk.eye.common.client.IClient;
import com.hawk.eye.common.client.JdkHttpClient;
import lombok.AllArgsConstructor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @className: HawkEyeCommonConfiguration
 * @description:
 * @author: salad
 * @date: 2022/10/9
 **/
@Configuration
@AllArgsConstructor
public class HawkEyeCommonConfiguration {


    @Bean
    @ConditionalOnMissingBean
    public IClient client(){
        return new JdkHttpClient();
    }

}
